<%@ page import="com.wuchao.service.serviceimpl.ServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/12
  Time: 11:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>中转页--servlet--mvc</title>
</head>
<body>
<%--<input type="text" name="name1">--%>
<%--中转页是看不到的，他是启动业务跳转的桥梁 （失败成功）--%>
<%--请求一定要判断非空--%>
<%--乱码问题了--%>
        <%
            request.setCharacterEncoding("utf-8");
        int id=Integer.parseInt( request.getParameter("id"));//默认字符串
            ServiceImpl service = new ServiceImpl();
            int update = service.update("delete from t143 where id=?", id);
            if(update>0){
                    request.getRequestDispatcher("load.jsp?isDel1=true").forward(request,response);
            }else{
                response.sendRedirect("load.jsp?isDel2=false");
            }


        %>



</body>
</html>
